/**
 * 商品相关API
 */

import {
	http,
	Method
} from "@/utils/request.js";

/**
 * 分页获取梦境  page gameId
 */
export function getGreamsListApi(params) {
	return http.request({
		url: `/game/play/dreams`,
		method: Method.GET,
		 needToken: true,
		params
	});
}

/**
 * 分页获取播放历史记录  page gameId
 */
export function getHistoryListApi(params) {
	return http.request({
		url: `/game/play/history`,
		method: Method.GET,
		 needToken: true,
		params
	});
}

/**
 * 聊天详情
 */
export function getChatDetailApi(params) {
	return http.request({
		url: `/chat/detail`,
		method: Method.GET,
		 needToken: true,
		params
	});
}
/**
 * 消息通知
 */
export function getChatNoticeApi(params) {
	return http.request({
		url: `/chat/notice`,
		method: Method.GET,
		 needToken: true,
		params
	});
}


/**
 * 发送消息
 * @param {*} payload 参数内容 
 * @returns 
 */
export function sendChatMessageApi(payload) {
	return http.request({
		url: `/chat/agent/message`,
		method: Method.POST,
		data: payload
	});
}